import java.util.Scanner;

public class L1 {
    public static void main(String[] args){
        Scanner reder = new Scanner(System.in);
        System.out.println("请输入一个年份：");
        int a = reder.nextInt();
        if (1000>a || a>10000){
            System.out.println("请输入正确的年份");
        }
        else {
            if (a % 4 == 0 || a % 400 == 0 && a % 100 == 0) {
                System.out.println("该年份为闰年");
            } else {
                System.out.println("该年份不是闰年");
            }
            System.out.println("程序结束");
        }
    }
}
